 <p class="notice"><%= notice %></p>
<%= form_tag assign_clients_path  %>

  <div>
    <%= label_tag "Choose Employee : " %>
    <%= select_tag "employee_id", options_for_select(@employees.collect{|employee| [employee.full_name , employee.id]}) ,:include_blank => true ,:class=>"validate[required]"%>
  </div> 

  <div>
    <%= label_tag "Choose Clients :" %>
    <%= select_tag "clients[]", options_for_select(@client.collect{|client| [client.full_name, client.id ]}) , {:multiple => :multiple}%>
  </div>

<br/>
<%= submit_tag "Submit" %>

<script>

		jQuery(document).ready(function(){
			// binds form submission and fields to the validation engine
			jQuery("form").validationEngine('attach', {validationEventTrigger : false});
		});

</script>
